package com.ldu.controller;

import com.ldu.pojo.Catelog;

import org.springframework.stereotype.Controller;

import com.ldu.service.CatelogService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by lenovo on 2017/5/9.
 */
@Controller
public class CatelogController {
    @Resource
    private CatelogService catelogService;


    @RequestMapping(value = "/getCatelog")
    @ResponseBody
    public List<Catelog> getCatelogList(){
        return catelogService.getCatelogList();
    }
    @RequestMapping(value = "/cateList")
    public String toCatelogList(){
        return "admin/catelog/cate_list";
    }



    /*@RequestMapping(value = "/getCateList")
    public List<Catelog> getCateList(){
        return catelogService.getCatelogList();
    }*/
}
